home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / ab20 / unarced / graphics / pbmplus / ppm / pgmtoppm.man < prev    next >
Text File  |  1995-03-17  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4.      pgmtoppm(1)          AMIGA (11 January 1991)          pgmtoppm(1)
  5.  
  6.  
  7.  
  8.      NAME
  9.           pgmtoppm - colorize a portable graymap into a portable
  10.           pixmap
  11.  
  12.      SYNOPSIS
  13.           pgmtoppm colorspec [pgmfile]
  14.           pgmtoppm colorspec1-colorspec2 [pgmfile]
  15.           pgmtoppm -map mapfile [pgmfile]
  16.  
  17.      DESCRIPTION
  18.           Reads a portable graymap as input.  Colorizes it by
  19.           multiplying the the gray values by specified color or
  20.           colors, and produces a portable pixmap as output.
  21.  
  22.           If only one color is specified, black in the pgm file stays
  23.           black and white in the pgm file turns into the specified
  24.           color in the ppm file.  If two colors (separated by a dash)
  25.           are specified, then black gets mapped to the first color and
  26.           white gets mapped to the second.
  27.  
  28.           The color can be specified in five ways:
  29.  
  30.           o    A name, assuming that a pointer to an X11-style color
  31.                names file was compiled in.
  32.  
  33.           o    An X11-style hexadecimal specifier: rgb:r/g/b, where r
  34.                g and b are each 1- to 4-digit hexadecimal numbers.
  35.  
  36.           o    An X11-style decimal specifier: rgbi:r/g/b, where r g
  37.                and b are floating point numbers between 0 and 1.
  38.  
  39.           o    For backwards compatibility, an old-X11-style
  40.                hexadecimal number: #rgb, #rrggbb, #rrrgggbbb, or
  41.                #rrrrggggbbbb.
  42.  
  43.           o    For backwards compatibility, a triplet of numbers
  44.                separated by commas: r,g,b, where r g and b are
  45.                floating point numbers between 0 and 1.  (This style
  46.                was added before MIT came up with the similar rgbi
  47.                style.)
  48.  
  49.           Also, the -map flag lets you specify an entire colormap to
  50.           be used.  The mapfile is just a ppm file; it can be any
  51.           shape, all that matters is the colors in it and their order.
  52.           In this case, black gets mapped into the first color in the
  53.           map file, and white gets mapped to the last.
  54.  
  55.      SEE ALSO
  56.           rgb3toppm(1), ppmtopgm(1), ppmtorgb3(1), ppm(5), pgm(5)
  57.  
  58.      AUTHOR
  59.           Copyright (C) 1991 by Jef Poskanzer.
  60.  
  61.  
  62.  
  63.      Page 1                                         (printed 10/19/91)
  64.  
  65.  
  66.  
  67.